package domain.searchEngine;

import junit.framework.Assert ;
import persistence.hibernate.HibernatePersistenceFactory ;
import domain.searchEngine.compass.CompassSearchEngineFactory ;


/**
 * @author idan
 */
public class CompassSearchEngineTest extends SearchEngineTest
{

	private HibernatePersistenceFactory hibernate ;
	private CompassSearchEngineFactory compass ;

	/**
	 * @param name
	 * @pre
	 * @post
	 */
	public CompassSearchEngineTest(final String name)
	{
		super(name) ;
	}

	/**
	 * Test method for {@link domain.searchEngine.compass.CompassSearchEngine#CompassSearchEngine(org.compass.core.CompassSession, domain.ForumData)}.
	 * Test method for {@link domain.searchEngine.compass.CompassSearchEngine#close()}.
	 */
	public void testConstructorsDestructors()
	{
		Assert.fail("Not yet implemented") ;
	}

	/**
	 * @see domain.searchEngine.SearchEngineTest#getPersistenceProvider()
	 */
	@Override
	protected HibernatePersistenceFactory getPersistenceProvider()
	{
		this.hibernate = getHibernatePersistence() ;
		return this.hibernate ;
	}

	/**
	 * @see domain.searchEngine.SearchEngineTest#getSearchProvider()
	 */
	@Override
	protected CompassSearchEngineFactory getSearchProvider()
	{
		this.compass = new CompassSearchEngineFactory(this.hibernate, this.forum) ;
		return this.compass ;
	}

}
